home *** CD-ROM | disk | FTP | other *** search
- diff -u --recursive src/edit src2/edit
- --- src/edit Wed Aug 30 07:14:02 1995
- +++ src2/edit Thu Jul 11 08:32:26 1996
- @@ -1 +1 @@
- -3
- +12
- diff -u --recursive src/ftpcmd.y src2/ftpcmd.y
- --- src/ftpcmd.y Wed Aug 30 07:14:02 1995
- +++ src2/ftpcmd.y Thu Jul 11 08:29:45 1996
- @@ -108,6 +108,97 @@
-
- static void toolong();
-
- +#define CMD 0 /* beginning of command */
- +#define ARGS 1 /* expect miscellaneous arguments */
- +#define STR1 2 /* expect SP followed by STRING */
- +#define STR2 3 /* expect STRING */
- +#define OSTR 4 /* optional SP then STRING */
- +#define ZSTR1 5 /* SP then optional STRING */
- +#define ZSTR2 6 /* optional STRING after SP */
- +#define SITECMD 7 /* SITE command */
- +#define NSTR 8 /* Number followed by a string */
- +#define STR3 9 /* expect STRING followed by optional SP then STRING */
- +
- +struct tab {
- + char *name;
- + short token;
- + short state;
- + short implemented; /* 1 if command is implemented */
- + char *help;
- +};
- +
- +struct tab cmdtab[] = { /* In order defined in RFC 765 */
- + { "USER", USER, STR1, 1, "<sp> username" },
- + { "PASS", PASS, ZSTR1, 1, "<sp> password" },
- + { "ACCT", ACCT, STR1, 0, "(specify account)" },
- + { "SMNT", SMNT, ARGS, 0, "(structure mount)" },
- + { "REIN", REIN, ARGS, 0, "(reinitialize server state)" },
- + { "QUIT", QUIT, ARGS, 1, "(terminate service)", },
- + { "PORT", PORT, ARGS, 1, "<sp> b0, b1, b2, b3, b4" },
- + { "PASV", PASV, ARGS, 1, "(set server in passive mode)" },
- + { "TYPE", TYPE, ARGS, 1, "<sp> [ A | E | I | L ]" },
- + { "STRU", STRU, ARGS, 1, "(specify file structure)" },
- + { "MODE", MODE, ARGS, 1, "(specify transfer mode)" },
- + { "RETR", RETR, STR1, 1, "<sp> file-name" },
- + { "STOR", STOR, STR1, 1, "<sp> file-name" },
- + { "APPE", APPE, STR1, 1, "<sp> file-name" },
- + { "MLFL", MLFL, OSTR, 0, "(mail file)" },
- + { "MAIL", MAIL, OSTR, 0, "(mail to user)" },
- + { "MSND", MSND, OSTR, 0, "(mail send to terminal)" },
- + { "MSOM", MSOM, OSTR, 0, "(mail send to terminal or mailbox)" },
- + { "MSAM", MSAM, OSTR, 0, "(mail send to terminal and mailbox)" },
- + { "MRSQ", MRSQ, OSTR, 0, "(mail recipient scheme question)" },
- + { "MRCP", MRCP, STR1, 0, "(mail recipient)" },
- + { "ALLO", ALLO, ARGS, 1, "allocate storage (vacuously)" },
- + { "REST", REST, ARGS, 1, "(restart command)" },
- + { "RNFR", RNFR, STR1, 1, "<sp> file-name" },
- + { "RNTO", RNTO, STR1, 1, "<sp> file-name" },
- + { "ABOR", ABOR, ARGS, 1, "(abort operation)" },
- + { "DELE", DELE, STR1, 1, "<sp> file-name" },
- + { "CWD", CWD, OSTR, 1, "[ <sp> directory-name ]" },
- + { "XCWD", CWD, OSTR, 1, "[ <sp> directory-name ]" },
- + { "LIST", LIST, OSTR, 1, "[ <sp> path-name ]" },
- + { "NLST", NLST, OSTR, 1, "[ <sp> path-name ]" },
- + { "SITE", SITE, SITECMD, 1, "site-cmd [ <sp> arguments ]" },
- + { "SYST", SYST, ARGS, 1, "(get type of operating system)" },
- + { "STAT", STAT, OSTR, 1, "[ <sp> path-name ]" },
- + { "HELP", HELP, OSTR, 1, "[ <sp> <string> ]" },
- + { "NOOP", NOOP, ARGS, 1, "" },
- + { "MKD", MKD, STR1, 1, "<sp> path-name" },
- + { "XMKD", MKD, STR1, 1, "<sp> path-name" },
- + { "RMD", RMD, STR1, 1, "<sp> path-name" },
- + { "XRMD", RMD, STR1, 1, "<sp> path-name" },
- + { "PWD", PWD, ARGS, 1, "(return current directory)" },
- + { "XPWD", PWD, ARGS, 1, "(return current directory)" },
- + { "CDUP", CDUP, ARGS, 1, "(change to parent directory)" },
- + { "XCUP", CDUP, ARGS, 1, "(change to parent directory)" },
- + { "STOU", STOU, STR1, 1, "<sp> file-name" },
- + { "SIZE", SIZE, OSTR, 1, "<sp> path-name" },
- + { "MDTM", MDTM, OSTR, 1, "<sp> path-name" },
- + { NULL, 0, 0, 0, 0 }
- +};
- +
- +struct tab sitetab[] = {
- + { "UMASK", UMASK, ARGS, 1, "[ <sp> umask ]" },
- + { "IDLE", IDLE, ARGS, 1, "[ <sp> maximum-idle-time ]" },
- + { "CHMOD", CHMOD, NSTR, 1, "<sp> mode <sp> file-name" },
- + { "HELP", HELP, OSTR, 1, "[ <sp> <string> ]" },
- + { "GROUP", GROUP, STR1, 1, "<sp> access-group" },
- + { "GPASS", GPASS, STR1, 1, "<sp> access-password" },
- + { "NEWER", NEWER, STR3, 1, "<sp> YYYYMMDDHHMMSS [ <sp> path-name ]" },
- + { "MINFO", MINFO, STR3, 1, "<sp> YYYYMMDDHHMMSS [ <sp> path-name ]" },
- + { "INDEX", INDEX, STR1, 1, "<sp> pattern" },
- + { "EXEC", EXEC, STR1, 1, "<sp> command [ <sp> arguments ]" },
- + { "ALIAS", ALIAS, OSTR, 1, "[ <sp> alias ] " },
- + { "CDPATH", CDPATH, OSTR, 1, "[ <sp> ] " },
- + { "GROUPS", GROUPS, OSTR, 1, "[ <sp> ] " },
- + { NULL, 0, 0, 0, 0 }
- +};
- +
- +void
- +print_groups();
- +
- +
- %}
-
- %token
- @@ -862,93 +953,6 @@
- %%
-
- extern jmp_buf errcatch;
- -
- -#define CMD 0 /* beginning of command */
- -#define ARGS 1 /* expect miscellaneous arguments */
- -#define STR1 2 /* expect SP followed by STRING */
- -#define STR2 3 /* expect STRING */
- -#define OSTR 4 /* optional SP then STRING */
- -#define ZSTR1 5 /* SP then optional STRING */
- -#define ZSTR2 6 /* optional STRING after SP */
- -#define SITECMD 7 /* SITE command */
- -#define NSTR 8 /* Number followed by a string */
- -#define STR3 9 /* expect STRING followed by optional SP then STRING */
- -
- -struct tab {
- - char *name;
- - short token;
- - short state;
- - short implemented; /* 1 if command is implemented */
- - char *help;
- -};
- -
- -struct tab cmdtab[] = { /* In order defined in RFC 765 */
- - { "USER", USER, STR1, 1, "<sp> username" },
- - { "PASS", PASS, ZSTR1, 1, "<sp> password" },
- - { "ACCT", ACCT, STR1, 0, "(specify account)" },
- - { "SMNT", SMNT, ARGS, 0, "(structure mount)" },
- - { "REIN", REIN, ARGS, 0, "(reinitialize server state)" },
- - { "QUIT", QUIT, ARGS, 1, "(terminate service)", },
- - { "PORT", PORT, ARGS, 1, "<sp> b0, b1, b2, b3, b4" },
- - { "PASV", PASV, ARGS, 1, "(set server in passive mode)" },
- - { "TYPE", TYPE, ARGS, 1, "<sp> [ A | E | I | L ]" },
- - { "STRU", STRU, ARGS, 1, "(specify file structure)" },
- - { "MODE", MODE, ARGS, 1, "(specify transfer mode)" },
- - { "RETR", RETR, STR1, 1, "<sp> file-name" },
- - { "STOR", STOR, STR1, 1, "<sp> file-name" },
- - { "APPE", APPE, STR1, 1, "<sp> file-name" },
- - { "MLFL", MLFL, OSTR, 0, "(mail file)" },
- - { "MAIL", MAIL, OSTR, 0, "(mail to user)" },
- - { "MSND", MSND, OSTR, 0, "(mail send to terminal)" },
- - { "MSOM", MSOM, OSTR, 0, "(mail send to terminal or mailbox)" },
- - { "MSAM", MSAM, OSTR, 0, "(mail send to terminal and mailbox)" },
- - { "MRSQ", MRSQ, OSTR, 0, "(mail recipient scheme question)" },
- - { "MRCP", MRCP, STR1, 0, "(mail recipient)" },
- - { "ALLO", ALLO, ARGS, 1, "allocate storage (vacuously)" },
- - { "REST", REST, ARGS, 1, "(restart command)" },
- - { "RNFR", RNFR, STR1, 1, "<sp> file-name" },
- - { "RNTO", RNTO, STR1, 1, "<sp> file-name" },
- - { "ABOR", ABOR, ARGS, 1, "(abort operation)" },
- - { "DELE", DELE, STR1, 1, "<sp> file-name" },
- - { "CWD", CWD, OSTR, 1, "[ <sp> directory-name ]" },
- - { "XCWD", CWD, OSTR, 1, "[ <sp> directory-name ]" },
- - { "LIST", LIST, OSTR, 1, "[ <sp> path-name ]" },
- - { "NLST", NLST, OSTR, 1, "[ <sp> path-name ]" },
- - { "SITE", SITE, SITECMD, 1, "site-cmd [ <sp> arguments ]" },
- - { "SYST", SYST, ARGS, 1, "(get type of operating system)" },
- - { "STAT", STAT, OSTR, 1, "[ <sp> path-name ]" },
- - { "HELP", HELP, OSTR, 1, "[ <sp> <string> ]" },
- - { "NOOP", NOOP, ARGS, 1, "" },
- - { "MKD", MKD, STR1, 1, "<sp> path-name" },
- - { "XMKD", MKD, STR1, 1, "<sp> path-name" },
- - { "RMD", RMD, STR1, 1, "<sp> path-name" },
- - { "XRMD", RMD, STR1, 1, "<sp> path-name" },
- - { "PWD", PWD, ARGS, 1, "(return current directory)" },
- - { "XPWD", PWD, ARGS, 1, "(return current directory)" },
- - { "CDUP", CDUP, ARGS, 1, "(change to parent directory)" },
- - { "XCUP", CDUP, ARGS, 1, "(change to parent directory)" },
- - { "STOU", STOU, STR1, 1, "<sp> file-name" },
- - { "SIZE", SIZE, OSTR, 1, "<sp> path-name" },
- - { "MDTM", MDTM, OSTR, 1, "<sp> path-name" },
- - { NULL, 0, 0, 0, 0 }
- -};
- -
- -struct tab sitetab[] = {
- - { "UMASK", UMASK, ARGS, 1, "[ <sp> umask ]" },
- - { "IDLE", IDLE, ARGS, 1, "[ <sp> maximum-idle-time ]" },
- - { "CHMOD", CHMOD, NSTR, 1, "<sp> mode <sp> file-name" },
- - { "HELP", HELP, OSTR, 1, "[ <sp> <string> ]" },
- - { "GROUP", GROUP, STR1, 1, "<sp> access-group" },
- - { "GPASS", GPASS, STR1, 1, "<sp> access-password" },
- - { "NEWER", NEWER, STR3, 1, "<sp> YYYYMMDDHHMMSS [ <sp> path-name ]" },
- - { "MINFO", MINFO, STR3, 1, "<sp> YYYYMMDDHHMMSS [ <sp> path-name ]" },
- - { "INDEX", INDEX, STR1, 1, "<sp> pattern" },
- - { "EXEC", EXEC, STR1, 1, "<sp> command [ <sp> arguments ]" },
- - { "ALIAS", ALIAS, OSTR, 1, "[ <sp> alias ] " },
- - { "CDPATH", CDPATH, OSTR, 1, "[ <sp> ] " },
- - { "GROUPS", GROUPS, OSTR, 1, "[ <sp> ] " },
- - { NULL, 0, 0, 0, 0 }
- -};
-
- struct tab *
- lookup(p, cmd)
- diff -u --recursive src/ftpd.c src2/ftpd.c
- --- src/ftpd.c Wed Aug 30 07:14:02 1995
- +++ src2/ftpd.c Thu Jul 11 08:29:46 1996
- @@ -95,9 +95,9 @@
- #include <sys/systeminfo.h>
- #endif
-
- -#ifdef SHADOW_PASSWORD
- +
- #include <shadow.h>
- -#endif
- +
-
- #ifdef KERBEROS
- #include <sys/types.h>
- @@ -1002,13 +1002,13 @@
- if (!anonymous) { /* "ftp" is only account allowed no password */
- if (*passwd == '-')
- passwd++;
- -#ifdef SHADOW_PASSWORD
- +
- if (pw) {
- struct spwd *spw = getspnam( pw->pw_name );
- if( !spw ) { pw->pw_passwd = ""; }
- else { pw->pw_passwd = spw->sp_pwdp; }
- }
- -#endif
- +
-
- *guestpw = (char) NULL;
- if (pw == NULL)
- diff -u --recursive src/glob.c src2/glob.c
- --- src/glob.c Wed Aug 30 07:14:02 1995
- +++ src2/glob.c Thu Jul 11 08:29:53 1996
- @@ -44,12 +44,14 @@
- #include <sys/param.h>
- #include <sys/stat.h>
-
- -#ifdef HAVE_DIRENT
- +/*#ifdef HAVE_DIRENT*/
- #include <dirent.h>
- -#else
- +/*#else
- #include <sys/dir.h>
- #endif
- +*/
-
- +#include <sys/stat.h>
- #include <pwd.h>
- #include <errno.h>
- #include <stdio.h>
- @@ -237,8 +239,8 @@
- return;
- goto patherr2;
- }
- - if (fstat(dirp->dd_fd, &stb) < 0)
- - goto patherr1;
- +/* if (fstat(dirp->dd_fd, &stb) < 0)
- + goto patherr1;*/
- if (!isdir(stb)) {
- errno = ENOTDIR;
- goto patherr1;
- Only in src/makefiles: Makefile.lnx.orig
- diff -u --recursive src/vers.c src2/vers.c
- --- src/vers.c Wed Aug 30 07:14:02 1995
- +++ src2/vers.c Thu Jul 11 08:32:27 1996
- @@ -1 +1 @@
- -char version[] = "Version wu-2.4(3) Sat Jun 3 13:32:14 EDT 1995";
- +char version[] = "Version wu-2.4(12) Thu Jul 11 08:32:26 PDT 1996";
-